/*
 * @Description: 单个信息修改
 * @Author: iamsmiling
 * @Date: 2021-06-13 16:18:37
 * @LastEditTime: 2021-06-15 15:05:48
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/components/textfield/clearable_text_field.dart';
import 'package:credit_business_circle/pages/mine/children/profile/profile_edit/profile_edit_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ProfileEditPage extends GetView<ProfileEditController> {
  const ProfileEditPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(controller.arg.tilte),
        elevation: .5,
        actions: [
          GestureDetector(
            onTap: () {},
            child: SizedBox(
              child: Container(
                height: R.dimen.dp22,
                width: R.dimen.dp50,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                    color: R.color.ff36ba93,
                    borderRadius: BorderRadius.circular(R.dimen.sp3)),
                margin: EdgeInsets.only(
                    top: R.dimen.dp15,
                    right: R.dimen.dp10,
                    bottom: R.dimen.dp15),
                // padding: EdgeInsets.symmetric(
                //     horizontal: R.dimen.dp13, vertical: R.dimen.dp5),
                child: Text(
                  "完成",
                  style: TextStyle(
                      color: R.color.fffcfcfc, fontSize: R.dimen.sp12),
                ),
              ),
            ),
          )
        ],
      ),
      body: SingleChildScrollView(
        child: Container(
          color: R.color.ffffffff,
          padding: EdgeInsets.symmetric(
              vertical: R.dimen.dp6, horizontal: R.dimen.dp8),
          child: ClearableTextField(
              initialValue: controller.arg.initialValue,
              style: TextStyle(fontSize: R.dimen.sp14),
              decoration: InputDecoration(
                  hintText: "请输入你的姓名",
                  fillColor: R.color.ffffffff,
                  filled: true,
                  helperStyle: TextStyle(
                      color: R.color.ff999999, fontSize: R.dimen.sp16)),
              suffixIcon: Image.asset(R.image.clean)),
        ),
      ),
    );
  }
}
